package com.winspread.app.paging

import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.winspread.mvvm.base.m.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 *Author: Amin
 *Data: 2023/4/11 18:02
 *
 *Description:
 *
 */
class PagingMV @Inject constructor() :BaseViewModel() {

    fun getPagingData():Flow<PagingData<Repo>>{
        return Repository.getPagingData().cachedIn(viewModelScope)
    }
}